// 导入
import request from '@/utils/request'

// 新增
export const saveApi = (data) => {
  return request({
    url: 'api/coursetype/save',
    method: 'post',
    data:data
  })
}
//查询
export const pageApi = (data) => {
  return request({
    url: 'api/coursetype/page',
    method: 'get',
    params: data
  })
}
//修改
export const updateApi = (data) => {
  return request({
    url: 'api/coursetype/update',
    method: 'post',
    data: data
  })
}
//删除
export const deleteApi = (data) => {
  return request({
    url: 'api/coursetype/delete',
    method: 'post',
    data: data
  })
}

//查询
export const allApi = () => {
  return request({
    url: 'api/coursetype/all',
    method: 'get'
  })
}